package CWM;
//案例：反转
//输入一组数据，输出的时候于输入的相反
public class cwm4 {
    public static void main(String[] args) {
int [] array={11,22,33,44,55};
int a=array[0];
int b=array[4];
        a=a^b;//a=10^20
        b=a^b;//b=10^20^20
        a=a^b;//a=10^20^20
        System.out.println("a="+a);
        System.out.println("b="+b);
//array[0]=array[0]^array[4];
//array[4]=array[0]^array[4];
//array[0]=array[0]^array[4];
        //System.out.println(array[0]);
       // System.out.println(array[4]);
    }
}
